package com.cloud.seata.stock.controller;


import com.cloud.seata.stock.service.StockService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class StockController {

    @Resource
    private StockService stockService;

    @PostMapping("/stock/decr")
    public String decr(@RequestBody Boolean flag) {
        return stockService.decr(flag);
    }




}
